package com.csdn.springbootmybatis.controller;

import com.csdn.springbootmybatis.service.SuccessKilledService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author JLL
 * @Date 2018/9/2/0002 下午 12:40
 */

@RestController
public class SuccessKilledController {

    @Autowired
    private SuccessKilledService successKilledService;

    @GetMapping("/successKilled/all")
    public Object findAllUser(
            @RequestParam(name = "pageNum", required = false, defaultValue = "1")
                    int pageNum,
            @RequestParam(name = "pageSize", required = false, defaultValue = "10")
                    int pageSize){
        return successKilledService.queryAllSuccessKilled(pageNum,pageSize);
    }
}

